from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib import admin
import os.path

from aio import views as aio_views

admin.autodiscover()

urlpatterns = patterns('',
     (r'^admin/(.*)', admin.site.root),
     
    url(
        regex   = r'^sorteo/$', 
        view    = aio_views.sorteo,
        name    = 'sorteo',
        ), 
)

urlpatterns += patterns('',
    (r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': os.path.join(os.path.dirname(__file__), 'site_media')}),
)